﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPI311.GameEngine
{
    public static class Time
    {
        public static float ElapsedGameTime { get; set; }
        public static TimeSpan TotalGameTime { get; set; }

        public static void Initialize()
        {
            TotalGameTime = new TimeSpan(0);
            ElapsedGameTime = 0.0f;
        }

        public static void Update(GameTime gameTime)
        {
            ElapsedGameTime =
                (float)gameTime.ElapsedGameTime.TotalSeconds;
            TotalGameTime = gameTime.TotalGameTime;
        }
    }
}
